#define _CRT_SECURE_NO_WARNINGS 1
#include"List.hpp"
#include<iostream>
using namespace std;
int main()
{
	zcg::list<int>a;
	a.push_back(1);
	a.push_back(2);
	a.push_back(3);
	a.push_back(4);
	//a.push_front(1);
	//a.push_front(2);
	//a.push_front(3);
	//a.push_front(4);

	//zcg::list<int>::
	zcg::list<int>::iterator it = a.begin();
	while (it != a.end())
	{
		cout << *it;
		it++;
	}
	cout << endl;
	a.pop_back();
    it = a.begin();
	while (it != a.end())
	{
		cout << *it;
		it++;
	}
	cout << endl;
	a.pop_front();
	it = a.begin();
	while (it != a.end())
	{
		cout << *it;
		it++;
	}
	a.clear();
	it = a.begin();
	while (it != a.end())
	{
		cout << *it;
		it++;
	}
}